* {
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

body {
    background-color: #f9fafb;
    margin: 0;
    padding: 30px;
}

.container {
    max-width: 1200px;
    margin: auto;
}

h2 {
    text-align: center;
    color: #2d3748;
    margin-bottom: 30px;
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
    flex: 1 1 calc(50% - 10px);
    min-width: 300px;
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-4px);
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2d3748;
    border-left: 4px solid #3182ce;
    padding-left: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.info-row:last-child {
    border-bottom: none;
}

.label {
    font-weight: bold;
    color: #4a5568;
    width: 120px;
    flex-shrink: 0;
}

.value {
    color: #2d3748;
    word-break: break-all;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th,
td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f7fafc;
}

.product-cell {
    display: flex;
    align-items: center;
}

.product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
}

/* 总金额卡片增强 */
.total-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #4a5568;
}

.total-line.bold {
    font-size: 16px;
    font-weight: bold;
    color: #2d3748;
}

/* 状态标签 */
.status-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: white;
    background-color: #3182ce;
}

.status-paid {
    background-color: #48bb78;
}

.status-cancelled {
    background-color: #e53e3e;
}

.btn-back {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #3182ce;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.btn-back:hover {
    background-color: #2563eb;
}

/* 物流时间轴 */
.logistics-timeline {
    list-style: none;
    padding-left: 20px;
    position: relative;
}

.logistics-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #ddd;
}

.logistics-item {
    position: relative;
    margin-bottom: 15px;
    padding-left: 25px;
}

.logistics-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #3182ce;
    z-index: 1;
}

.logistics-time {
    font-size: 14px;
    color: #888;
}

.logistics-status {
    font-weight: bold;
    color: #2d3748;
}

.logistics-desc {
    font-size: 14px;
    color: #555;
}